package com.centriole.service.workflow.dao;

import java.util.List;

import com.centriole.service.workflow.entity.WorkPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
public interface WorkPageMapper {
	/**根据流程定义Key和类型查询
	 * @param processKey
	 * @param type
	 * @return
	 */
	public List<WorkPage> selectByProcessIdAndType(@Param("processKey") String processKey, @Param("type") String type);
	
	public List<WorkPage> select();
	
	public List<WorkPage> selectByPidAndPageName(@Param("processKey") String processKey, @Param("pageName") String pageName);
	
	public WorkPage selectById(String id);
	public void insert(WorkPage workPage);
	public void update(WorkPage workPage);
	public void edit(WorkPage workPage);
	public void logicDelete(String id);
	
}
